You are here: Job and Form Set Rules Reference > JDT Rules Reference > ImportXMLFile > Using the SCH Option

Using the SCH Option

This example imports XML files (F_SCH1.XML, F_SCH2.XML, and F_SCH3.XML) based on the content of a line in the file pointed to by the ExtrFile option in the Data control group. Using these files, the GenData program creates the recipient batch, NA, POL, and NewTrn files needed for GenPrint and GenArc processing.

This INI option differs from the one defined in the assumed MRL definition:

< Data >

ExtrFile = .\extract\F_Sch.DAT

Here is an excerpt from the F_SCH.DAT file in the \extract directory which contains an entry (path and file name) for each XML file to import:

XML_FILE_NAME .\export\F_SCH1.xml

XML_FILE_NAME .\export\F_SCH2.xml

XML_FILE_NAME .\export\F_SCH3.xml

Note This option lets you import and process multiple XML files because of the way the file name and path are specified—one file per entry in the file specified in the ExtrFile option in the Data control group.

Here is an excerpt from a sample AFGJOB.JDT file:

< Base Rules >

;RULStandardJobProc;;;

< Base Form Set Rules >

;NoGenTrnTransactionProc;;;

;BuildFormList;;;

;ImportXMLFile;2;SCH=1,XML_FILE_Name 15,19